Skip to content

Tag WSClient requests with information about requests#54

Open
simao wants to merge 1 commit intoopenzipkin-contrib:masterfrom
simao:tag-ws-requests
Open

Tag WSClient requests with information about requests#54
simao wants to merge 1 commit intoopenzipkin-contrib:masterfrom
simao:tag-ws-requests

Conversation

@simao
Copy link
Copy Markdown

@simao simao commented Jul 10, 2019

This adds more information to the span used by TracedWSClient.

I added a test, but instantiating another application seems to break ZipkinModuleSpec, which uses Tracing.current. Each test is green when running them separately. I could try changing that to something else but didn't want to change that spec, not sure how to proceed here?

Thanks!

@simao simao force-pushed the tag-ws-requests branch from 30b6898 to 69c7069 Compare July 10, 2019 12:24
val tracingTags = List(
"http.method" -> this.method,
"http.path" -> this.uri.getPath,
"http.host" -> this.uri.getHost
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi this isn't usually tagged by default. remoteEndpoint is, though

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean we should call remoteServiceName in ZipkinTraceServiceLike ? Because right now it just calls name on the span and I see remoteEndpoint is deprecated.

@simao
Copy link
Copy Markdown
Author

simao commented Jul 10, 2019

Also, the test I added is failing here because ti depends on #53

@codefromthecrypt
Copy link
Copy Markdown

codefromthecrypt commented Jul 11, 2019 via email

@simao
Copy link
Copy Markdown
Author

simao commented Jul 11, 2019

@adriancole Thanks for checking my PRs, I won't have time in the next few days but I will work a bit more on this asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants